﻿package mortal.game.view.guild.hintIcon
{

    public class GuildHintIconMgr extends Object
    {
        private var _renIocn:GuildPositionModifyIcon;
        private var _fuIcon:GuildDungeonIcon;
        private var _huiIcon:GuildInviteCreateIcon;
        private var _yaoIcon:GuildInviteIcon;
        private static var _instance:GuildHintIconMgr;

        public function GuildHintIconMgr()
        {
            if (_instance)
            {
                throw new Error("TradeIcon signle");
            }
            return;
        }// end function

        public function get yaoIcon() : GuildInviteIcon
        {
            if (this._yaoIcon == null)
            {
                this._yaoIcon = new GuildInviteIcon();
            }
            return this._yaoIcon;
        }// end function

        public function get huiIcon() : GuildInviteCreateIcon
        {
            if (this._huiIcon == null)
            {
                this._huiIcon = new GuildInviteCreateIcon();
            }
            return this._huiIcon;
        }// end function

        public function get fuIcon() : GuildDungeonIcon
        {
            if (this._fuIcon == null)
            {
                this._fuIcon = new GuildDungeonIcon();
            }
            return this._fuIcon;
        }// end function

        public function get renIocn() : GuildPositionModifyIcon
        {
            if (this._renIocn == null)
            {
                this._renIocn = new GuildPositionModifyIcon();
            }
            return this._renIocn;
        }// end function

        public function hideAll() : void
        {
            if (this._renIocn)
            {
                this._renIocn.hide();
            }
            if (this._fuIcon)
            {
                this._fuIcon.hide();
            }
            if (this._yaoIcon)
            {
                this._yaoIcon.hide();
            }
            if (this._huiIcon)
            {
                this._huiIcon.hide();
            }
            return;
        }// end function

        public static function get instance() : GuildHintIconMgr
        {
            if (!_instance)
            {
                _instance = new GuildHintIconMgr;
            }
            return _instance;
        }// end function

    }
}
